//
//  SchemeCenterCtrl.h
//  cutter
//
//  Created by mac on 16/1/4.
//  Copyright © 2016年 e360. All rights reserved.
//

#import "SchemeCustom.h"
#import "ProductCenterCtrl.h"
#import "SchemeProductList.h"
#import "SWTableViewCell.h"

//
@interface SchemeCenterEdit : SchemeCustomTable
@property (weak, nonatomic) IBOutlet UITextField *nameView;
@property(weak, nonatomic) UITextField *clientView;
@property(strong, nonatomic) NSMutableArray *data;
@property(strong, nonatomic) id source;
@property(strong, nonatomic) NSDictionary *client;
@property(assign, nonatomic) BOOL append;
@end

//方案列表
@interface SchemeListCtrl : UIViewController<SWTableViewCellDelegate>
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *rightLayout;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (weak, nonatomic) IBOutlet UIButton *button1;
@property (weak, nonatomic) IBOutlet UIButton *button2;
@property (weak, nonatomic) IBOutlet UIView *tipsView;
@property (strong, nonatomic) NSArray *data;
@property (strong, nonatomic) NSMutableDictionary *condition;
@end



//
@interface SchemeCenterAdd : SchemeCustomTable
@property (weak, nonatomic) IBOutlet UITextField *nameView;
@property(weak, nonatomic) UITextField *clientView;
@property(strong, nonatomic) NSMutableArray *data;
@property(strong, nonatomic) NSDictionary *client;
@property(assign, nonatomic) BOOL append;
@end

//
@interface SchemeCenterList : UIViewController<UITextFieldDelegate>
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UITextField *searchView;
@property (weak, nonatomic) IBOutlet UIButton *deleteView;
@property (weak, nonatomic) IBOutlet UIButton *editView;
@property (strong, nonatomic) NSMutableDictionary *condition;
@property (strong, nonatomic) NSMutableArray *data;
@end

//
@interface SchemeCenterCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UILabel *titieView;
@property (weak, nonatomic) IBOutlet UILabel *priceView;
@property (weak, nonatomic) IBOutlet UIButton *selectView;
@property (weak, nonatomic) IBOutlet UIButton *infoView;
@property (weak, nonatomic) IBOutlet UIButton *eiditbtn;

@property (weak, nonatomic) IBOutlet UIImageView *tlIcon;
@property (weak, nonatomic) IBOutlet UIImageView *trIcon;
@property (weak, nonatomic) IBOutlet UIImageView *blIcon;
@property (weak, nonatomic) IBOutlet UIImageView *brIcon;
@end

//
@interface SchemeCenterCtrl : UIViewController{
    SchemeProductList *schemeProductList;
}
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UIButton *exitView;
@property (weak, nonatomic) IBOutlet UIView *tipsView;
@property (weak, nonatomic) IBOutlet UIView *listView;
@property (strong, nonatomic) NSMutableDictionary *data;
@property (strong, nonatomic) NSMutableArray *product;
@property(copy, nonatomic) blockEvent onSelected;
-(void)import:(NSDictionary*)data;
-(void)updataScheme;
@end